home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 2: CDPD 1 / Almathera Ten on Ten - Disc 2: CDPD 1.iso / pd / 051-075 / 074 / less / less.h < prev    next >
C/C++ Source or Header  |  1995-03-13  |  2KB  |  57 lines

  1. /*
  2.  * Standard include file for "less".
  3.  */
  4.  
  5. /*
  6.  * Language details.
  7.  */
  8. #define public          /* PUBLIC FUNCTION */
  9.  
  10. /*
  11.  * Special types and constants.
  12.  */
  13. typedef long            POSITION;
  14. /*
  15.  * {{ Warning: if POSITION is changed to other than "long",
  16.  *    you may have to change some of the printfs which use "%ld"
  17.  *    to print a variable of type POSITION. }}
  18.  */
  19.  
  20. #define END_POSITION    ((POSITION)(-2))
  21. #define NULL_POSITION   ((POSITION)(-1))
  22.  
  23. #define EOF             (0)
  24. #define NULL            (0)
  25.  
  26. /* How quiet should we be? */
  27. #define NOT_QUIET       0       /* Ring bell at eof and for errors */
  28. #define LITTLE_QUIET    1       /* Ring bell only for errors */
  29. #define VERY_QUIET      2       /* Never ring bell */
  30.  
  31. /* How should we prompt? */
  32. #define PR_SHORT        0       /* Prompt with colon */
  33. #define PR_MEDIUM       1       /* Prompt with message */
  34. #define PR_LONG         2       /* Prompt with longer message */
  35.  
  36. /* How should we handle backspaces? */
  37. #define BS_UNDERLINE    0       /* Underlining converted to underline mode */
  38. #define BS_NORMAL       1       /* \b treated as normal char; actually output */
  39. #define BS_CONTROL      2       /* \b treated as control char; prints as ^H */
  40.  
  41. /* Flag to eq_message() telling what to put in the message */
  42. #define MNAME           001     /* File name */
  43. #define MOF             002     /* "file x of y" */
  44. #define MBYTE           004     /* "byte x/y" */
  45. #define MPCT            010     /* Percentage into the file */
  46.  
  47. /* Special chars used to tell put_line() to do something special */
  48. #define UL_CHAR         '\201'  /* Enter underline mode */
  49. #define UE_CHAR         '\202'  /* Exit underline mode */
  50.  
  51. #define CONTROL(c)              ((c)&037)
  52. #define SIGNAL(sig,func)        signal(sig,func)
  53.  
  54. off_t lseek();
  55.  
  56. #include "funcs.h"
  57.